package com.xbongbong.saas.service.impl;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.BaseVO;
import com.xbongbong.pro.bundle.dto.BundleReadLogDTO;
import com.xbongbong.saas.model.DingBundleLogModel;
import com.xbongbong.saas.service.BundleLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 应用模块名称<p>
 * 代码描述<p>
 * Company: 逍邦网络科技有限公司<p>
 *
 * @author chenshan
 * @version v1.0
 * @since 2020/8/21 2:51 下午
 */
@Service("bundleLogService")
public class BundleLogServiceImpl implements BundleLogService {
    @Resource
    private DingBundleLogModel dingBundleLogModel;
    
    @Override
    public BaseVO close(BundleReadLogDTO bundleReadLogDTO) throws XbbException {
        String corpid = bundleReadLogDTO.getCorpid();
        String userId = bundleReadLogDTO.getUserId();
        String platform = bundleReadLogDTO.getPlatform();
        
        dingBundleLogModel.insert(corpid,userId,platform);
        return new BaseVO();
    }
}
